package tech.aistar.msg;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.aistar.util.WebSocketProcess;

@Component
public class MsgHandle {
    @Autowired
    private WebSocketProcess webSocketProcess;


    public void handleMessage(String msg) throws Exception {
        //System.out.println("msg:"+msg);
        webSocketProcess.sendAllMessage(msg);
    }
}
